package com.qyl.deguru.service.impl;

import java.util.List;

import com.qyl.deguru.common.PageModel;
import com.qyl.deguru.dao.TimeDao;
import com.qyl.deguru.dao.impl.TimeDaoImpl;
import com.qyl.deguru.dto.TimeLimit;
import com.qyl.deguru.service.TimeService;


public class TimeServiceImpl implements TimeService {

	private TimeDao timeDao = new TimeDaoImpl();
	
	@Override
	public int getRecordCount(TimeLimit time) {
		
		return timeDao.getRecordCount(time);
	}

	@Override
	public List<TimeLimit> timeList(PageModel pageModel, TimeLimit time) {

		List<TimeLimit> list = timeDao.timeList(pageModel,time);
		
		return list;
		
	}

	@Override
	public int timeAdd(TimeLimit time) {

		return timeDao.timeAdd(time);
	}

	@Override
	public int delTime(Integer id) {

		return timeDao.delTime(id);
	}

	@Override
	public TimeLimit getTimeById(Integer id) {
		
		return timeDao.getTimeById(id);
	}

	@Override
	public int timeUpdate(TimeLimit time) {
		
		return timeDao.timeUpdate(time);
	}

	@Override
	public List<TimeLimit> getAllTimeLimit() {

		return timeDao.getAllTimeLimit();
	}

	@Override
	public int delBatchTime(Integer[] ids) {

		return timeDao.delBatchTime(ids);
	}


}
